Our first JavaScript example

This will show the date and time you loaded the page, along with the date it was last modified on the server. If you are viewing this as a local file, this date will be wrong, we'll see how to test this in a later chapter.

View the source to see how it works

This page shows the same information, but uses a function to display it.

Don't play with bgColor like this, it's not big and it's not clever :)

If you can read this, you have JavaScript turned off. Turn it on to see how the examples work